package com.motorwaymanage.impl;

import java.io.IOException;
import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.motorwaymanage.beans.ApplyInfo;
import com.motorwaymanage.biz.IApplyInfoBiz;
import com.motorwaymanage.dao.DBAccess;

public class ApplyInfoBizImpl implements IApplyInfoBiz{
	private DBAccess db=new DBAccess(); 
	@Override
	public List<ApplyInfo> selectApplyInfo(int mid) {
		SqlSession session=null;
		List<ApplyInfo> list=null;
		try {
			session=db.getSqlSession();
			IApplyInfoBiz applyInfoBiz=session.getMapper(IApplyInfoBiz.class);
			list=applyInfoBiz.selectApplyInfo(mid);
		} catch (IOException e) {
			e.printStackTrace();
		}finally{
			session.close();
		}
		return list;
	}

}
